package com.company.project.modular.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.company.project.modular.system.model.Use;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
public interface UseMapper extends BaseMapper<Use> {
    /*根据标识码，use_state=0查询id，并且根据id排序，选择第一个id存入到实验对照的useId里面*/
    List<String> findById(@Param("testCode") String testCode);

    /*根据标识码去查use_state=0*/
    List<String> findByState(@Param("testCode") String testCode);

    Use selectByUseCode(@Param("useCode") String useCode);
}
